package com.qfedu.smart_community.entity;

import java.io.Serializable;

/**
 * 
 * @TableName room
 */
public class Room implements Serializable {
    /**
     * 主键
     */
    private Integer id;

    /**
     * 业主姓名
     */
    private String proprietorName;

    /**
     * 房间号
     */
    private Integer roomId;

    /**
     * 楼栋id
     */
    private Integer dongId;

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    public Integer getId() {
        return id;
    }

    /**
     * 主键
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 业主姓名
     */
    public String getProprietorName() {
        return proprietorName;
    }

    /**
     * 业主姓名
     */
    public void setProprietorName(String proprietorName) {
        this.proprietorName = proprietorName;
    }

    /**
     * 房间号
     */
    public Integer getRoomId() {
        return roomId;
    }

    /**
     * 房间号
     */
    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }

    /**
     * 楼栋id
     */
    public Integer getDongId() {
        return dongId;
    }

    /**
     * 楼栋id
     */
    public void setDongId(Integer dongId) {
        this.dongId = dongId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Room other = (Room) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getProprietorName() == null ? other.getProprietorName() == null : this.getProprietorName().equals(other.getProprietorName()))
            && (this.getRoomId() == null ? other.getRoomId() == null : this.getRoomId().equals(other.getRoomId()))
            && (this.getDongId() == null ? other.getDongId() == null : this.getDongId().equals(other.getDongId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getProprietorName() == null) ? 0 : getProprietorName().hashCode());
        result = prime * result + ((getRoomId() == null) ? 0 : getRoomId().hashCode());
        result = prime * result + ((getDongId() == null) ? 0 : getDongId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", proprietorName=").append(proprietorName);
        sb.append(", roomId=").append(roomId);
        sb.append(", dongId=").append(dongId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}